package com.shycloud.mido.organ.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.util.Date;

/**
 * 设备LOG
 *
 * @author nianhua.jiang
 * @date 2020/4/14 15:36
 */
@Data
@TableName(value = "mido_new_member.model_log")
public class ModelLog extends Model<ModelLog>{

	private static final long serialVersionUID = 1L;

	/** 主键 */
	@TableId(value = "id",type = IdType.UUID)
	private String id;

	/** 电话 */
	@TableField(value = "phone")
	private String phone;

	/** 名字 */
	@TableField(value = "username")
	private String username;

	/** memberId */
	@TableField(value = "member_id")
	private String memberId;

	/** 设备ID */
	@TableField(value = "device_id")
	private Integer deviceId;

	/** 设备型号 */
	@TableField(value = "device_model")
	private String deviceModel;

	/** 设备版本 */
	@TableField(value = "device_os_version")
	private String deviceOsVersion;

	/** app版本 */
	@TableField(value = "app_version")
	private Integer appVersion;

	/** app版本名 */
	@TableField(value = "app_version_name")
	private String appVersionName;

	/** log信息 */
	@TableField(value = "log_message")
	private String logMessage;

	/** 路由 */
	@TableField(value = "route")
	private String route;

	/** 创建时间 */
	@TableField(value = "create_time")
	private Date createTime;

	/** 创建人 */
	@TableField(value = "create_user")
	private String createUser;

}